/*
 * Copyright @ 2024 weili23
 * com.example.mythread.a06threadWaitAndNotify 11:17
 * All right reserved.
 */

package com.example.mythread.a06threadWaitAndNotify;


/**
 * @desc:
 * @author: weili23
 * @createTime: 2024/10/21 11:17
 * @version: v1.0
 */
public class ThreadDemo {
    public static void main(String[] args){
        Cook cook = new Cook();
        Eat eat = new Eat();
        cook.setName("厨师");
        eat.setName("吃货");
        cook.start();
        eat.start();


    }
}
